package dshop.model;

import appbase.jfinal.ext.BaseModel;

public class AppSuperman extends BaseModel<AppSuperman>{
	
	private static final long serialVersionUID = -6967680902549117464L;
	
	public static final AppSuperman dao = new AppSuperman();

	public static void createAndSave(int accountId) 
	{
		new AppSuperman().set("account_id", accountId)
						 .save();
	}

	public static void deleteBy(int supermanId) 
	{
		dao.deleteById(supermanId);
	}

	public static boolean isExisted(int accountId) 
	{
		return dao.exist("account_id", accountId);
	}


}
